package com.taotao.builder;

/**
 * @Author: wangjin
 * @CreateTime: 2022-08-06  13:00
 */
public class TaoTaoHttpClient {
    private String url;
    private String method;
    private Long  timeout;
    private String body;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public TaoTaoHttpClient(String url, String method, Long timeout, String body) {
        this.url = url;
        this.method = method;
        this.timeout = timeout;
        this.body = body;
    }

    public TaoTaoHttpClient(TaoTaoBuilder taoTaoBuilder){
        this.url = taoTaoBuilder.getUrl();
        this.method = taoTaoBuilder.getMethod();
        this.timeout = taoTaoBuilder.getTimeout();
        this.body = taoTaoBuilder.getBody();
    }

    public TaoTaoHttpClient() {
    }

    @Override
    public String toString() {
        return "TaoTaoHttpClient{" +
                "url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", timeout=" + timeout +
                ", body='" + body + '\'' +
                '}';
    }
}
